package top.gradual.springcloud.cfgbeans;

import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * @Author: gradual
 * @Date: 2019-05-21 23:08
 */
@Configuration
public class ConfigBean {
/*
    @Bean
    @LoadBalanced //负载均衡
    public RestTemplate getRestTemplate() {
        return new RestTemplate();
    }

    *//**
     * @description 更换负载均衡算法
     *
     * @date 2019/5/28 14:07
     * @author gradual
     *
     * @return com.netflix.loadbalancer.IRule
     *//*
    @Bean
    public IRule getRule() {
        //return new RandomRule();   //使用随机算法
        return new RetryRule();
    }*/

}
